arm64: kvm: Fix copy-and-paste error in bhb templates for v5.10 stable
authorJames Morse <james.morse@arm.com>
Tue, 15 Mar 2022 13:57:20 +0000 (13:57 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 17 Mar 2022 15:40:47 +0000 (15:40 +0000)
commitb9e715615c2535a5f6447e57fcd7b3adc0e573ca
tree976c8fb3242e2829f8d9beac37e1124733e96ccb
parente2698eb5e409b52535d21b143e298726c084b419
arm64: kvm: Fix copy-and-paste error in bhb templates for v5.10 stable

From james.morse@arm.com  Thu Mar 17 11:00:55 2022
To: stable@vger.kernel.org
Cc: gregkh@linuxfoundation.org, pavel@denx.de, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, james.morse@arm.com
Message-ID: <20220315135720.1302143-1-james.morse@arm.com>

KVM's infrastructure for spectre mitigations in the vectors in v5.10 and
earlier is different, it uses templates which are used to build a set of
vectors at runtime.

There are two copy-and-paste errors in the templates: __spectre_bhb_loop_k24
should loop 24 times and __spectre_bhb_loop_k32 32.

Fix these.

Reported-by: Pavel Machek <pavel@denx.de>
Link: https://lore.kernel.org/all/20220310234858.GB16308@amd/
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/arm64
Gbp-Pq: Name arm64-kvm-fix-copy-and-paste-error-in-bhb-templates-for-v5.10-stable.patch
arch/arm64/kvm/hyp/smccc_wa.S